package com.miao.im.support.mq;

import cn.hutool.core.collection.ConcurrentHashSet;

import java.util.Set;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/3/11 16:10
 * @Description:
 */
public class MqMessageFailedStore {
    private static final Set<MqMessagePayload> set = new ConcurrentHashSet<>();

    public static void add(MqMessagePayload payload) {
        set.add(payload);
    }

    public static void remove(MqMessagePayload payload) {
        set.remove(payload);
    }

    public static Set<MqMessagePayload> getAll() {
        return set;
    }
}
